buck7 2.2.0
buck7


BUCK 7 Click

BUCK 7 Click demo application is developed using the NECTO Studio, ensuring compatibility with mikroSDK's open-source libraries and tools. Designed for plug-and-play implementation and testing, the demo is fully compatible with all development, starter, and mikromedia boards featuring a mikroBUS™ socket.


Click Library

  • Author : MikroE Team
  • Date : dec 2019.
  • Type : SPI type

Software Support

Example Description

This demo application controls the voltage at the output using the BUCK 7 Click.

Example Libraries

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.BUCK7

Example Key Functions

Application Init

Initializes Driver init, reset chip, enable chip and set mode

void application_init ( void )
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
buck7_cfg_setup( &cfg );
BUCK7_MAP_MIKROBUS( cfg, MIKROBUS_1 );
buck7_init( &buck7, &cfg );
buck7_enable( &buck7 );
}
#define BUCK7_MAP_MIKROBUS(cfg, mikrobus)
Definition buck7.h:67
#define BUCK7_MODE_PWM
Definition buck7.h:92
void application_init(void)
Definition main.c:33

Application Task

Sets output voltage to 5V, 10V, 15V, 20V, 25V every 3 seconds. It is necessary to set the input voltage on 2.7V + maximum output voltage.

{
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
buck7_set_output_voltage( &buck7, 0x0BB8 ); /* 10 V */
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
#define BUCK7_OUT_VOLTAGE_5V
Definition buck7.h:100
#define BUCK7_OUT_VOLTAGE_10V
Definition buck7.h:105
#define BUCK7_OUT_VOLTAGE_25V
Definition buck7.h:120
#define BUCK7_OUT_VOLTAGE_20V
Definition buck7.h:115
#define BUCK7_OUT_VOLTAGE_15V
Definition buck7.h:110
void application_task()
Definition main.c:61

Application Output

This Click board can be interfaced and monitored in two ways:

  • Application Output - Use the "Application Output" window in Debug mode for real-time data monitoring. Set it up properly by following this tutorial.
  • UART Terminal - Monitor data via the UART Terminal using a USB to UART converter. For detailed instructions, check out this tutorial.

Additional Notes and Information

The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.